#ifndef __GE_FONTREGISTRY_H__
#define __GE_FONTREGISTRY_H__

#include "GE_Base.h"

namespace Syp
{
class SYPAPI FontRegistry : public UniqueRegistry<Font>
{
public:
	///Initialises the EffectRegistry
	static void initialise();
	///Returns a reference to the FontRegistry
	static FontRegistry& getRegistry();
	///Releases the FontRegistry
	static void release();	
	///Adds a font to the Registry.Not to be called by user
	bool addFont(Font* f);
	///Dumps available info to Log file.
	void dumpInfo();
	///Clears FontBuffers for new frame. Should not be called by user.
	void clearFontBuffers();
	///Returns the global FreeType2 library object.
	static FT_Library& getFTLibrary();
private:
	FontRegistry(){};
	~FontRegistry(){};
	static FontRegistry* fg;
	static FT_Library  library;
};

}
#endif //__GE_FONTREGISTRY_H__
